package com.yindian.cos.monitor.model;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * 日志追踪实体
 *
 * @author zhangchuanhao
 * @create 2018/11/4
 */
@Data
@ToString
@NoArgsConstructor
public class Tracker implements Serializable {

    /**
     * 追踪id
     */
    private String trackerId;

    /**
     * 服务实例的唯一标识
     */
    private String spanId;

    /**
     * 节点（ip：port）
     */
    private String node;

    /**
     * 服务名称
     */
    private String serverName;

    /**
     * 请求地址
     */
    private String url;

    /**
     * 请求地址
     */
    private String uri;

    /**
     * 请求方式
     */
    private String method;

    /**
     * 请求参数
     */
    private Object params;

    public Tracker(String trackerId, String spanId, String node, String serverName, String url, String uri, String method) {
        this.trackerId = trackerId;
        this.spanId = spanId;
        this.node = node;
        this.serverName = serverName;
        this.url = url;
        this.uri = uri;
        this.method = method;
    }
}
